//
//  PagerTitleView.m
//  智云网校
//
//  Created by ztzhangtao on 2017/11/5.
//  Copyright © 2017年 bwx. All rights reserved.
//

#import "PagerTitleView.h"
#import <Masonry.h>



@implementation PagerTitleView

-(UILabel *)titleLabel
{
    if (!_titleLabel) {
        _titleLabel = [UILabel new];
        _titleLabel.font = [UIFont systemFontOfSize:15.f];
        _titleLabel.textColor = [UIColor colorWithHexString:@"#333333"];
        [self addSubview:_titleLabel];
        
        __weak typeof(self)wself = self;
        
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(@10);
            make.top.bottom.equalTo(@0);
            make.right.equalTo(wself.countLabel.mas_left);
        }];
    }
    return _titleLabel;
}

-(UILabel *)countLabel
{
    if (!_countLabel) {
        _countLabel = [UILabel new];
        _countLabel.textAlignment = NSTextAlignmentRight;
        _countLabel.font = [UIFont systemFontOfSize:15.f];
        _countLabel.textColor = [UIColor colorWithHexString:@"#333333"];
        [self addSubview:_countLabel];
        
        [_countLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(@-10);
            make.width.lessThanOrEqualTo(@(1000));
            make.top.bottom.equalTo(@0);
        }];
    }
    return _countLabel;
}

@end
